target("T2")
    set_kind("binary")

    -- behaviac sdk
    behaviacSdkDir = "../3rdParty/$(arch)/"
    add_includedirs(behaviacSdkDir.."/inc")
    add_linkdirs(behaviacSdkDir.."/lib")
    add_links("libbehaviac_msvc_release")

    -- behaviac generated
   
    add_includedirs("./exported/behaviac_generated/types")

    add_files("**.cpp")

    after_build(
        function(t)
            behaviacSdkDir = "../3rdParty/$(arch)/"
            os.cp(t:scriptdir().."/exported/*.xml", t:targetdir().."/exported/")
            os.cp(behaviacSdkDir.."/bin/libbehaviac_msvc_release.dll", t:targetdir().."/")
        end
    )


target_end()